/**
 * FileName: SickbedServiceImpl
 * Author:   P
 * Date:     2021/3/8 9:03
 * Description:
 */
package com.hospital.nurse.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.nurse.mapper.SickbedMapper;
import com.hospital.nurse.pojo.Sickbed;
import com.hospital.nurse.service.SickbedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SickbedServiceImpl extends ServiceImpl<SickbedMapper, Sickbed> implements SickbedService {

    @Autowired
    private SickbedMapper sickbedMapper;


    @Override
    public List<Sickbed> getSickAndPatients() {
        return sickbedMapper.getSickAndPatients();
    }

    @Override
    public Sickbed getScikbedPatient(int sid) {
        return sickbedMapper.getScikbedPatient(sid);
    }

    @Override
    public List<Sickbed> getNullBed() {
        return sickbedMapper.getNullBed();
    }

    @Override
    public void editSickebed(int sid , int pid) {
         sickbedMapper.editSickebed(sid,pid);
    }

    @Override
    public List<Sickbed> getDepNullBed(int did) {
        return sickbedMapper.getDepNullBed(did);
    }
}
